import request from '@/utils/request';

//查询
export function majorTree(data?:any) {
  return request({
    url: '/admin/major/majorTree',
    method: 'get',
    params: data,
  });
}

//新增
export function majorSave(data:any) {
  return request({
    url: '/admin/major/majorSave',
    method: 'post',
    data,
  });
}

//修改
export function majorUpdate(data:any
) {
  return request({
    url: '/admin/major/majorUpdate',
    method: 'post',
    data,
  });
}

//删除
export function majorRemove(data:any) {
  return request({
    url: '/admin/major/majorRemove',
    method: 'post',
    params: data,
  });
}
